from protorpc import message_types
from protorpc import remote
from google.appengine.api import mail

package = 'mail'

# Create the RPC service to exchange messages
class MailService(remote.Service):



    @remote.method(message_types.VoidMessage)
    def send(self, request):
        mail.send_mail(sender="sidney.nakatani@gmail.com",
              		to="sidney.nakatani@gmail.com",
                        subject="Your account has been approved",
                        body="""
			Dear friend:

                        Your account is approved. 

                        regards,
			Sidney Nakatani.
	                """)

        return message_types.VoidMessage()

